package com.engine4cloud.tdf.app.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.util.TenantTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @description 分类表
 * @author sh
 * @date 2024-09-03
 */
@Data
@TenantTable
@TableName("app_classify")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "分类")
public class AppClassifyEntity extends Model<AppArticleEntity> {

    /**
    * id
    */
    @Schema(description = "主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
    * 分类名称
    */
    @Schema(description = "分类名称")
    private String name;

    /**
    * 类型类型
    */
    @Schema(description = "类型名称")
    private Integer code;

    /**
    * 图片
    */
    @Schema(description = "图片")
    private String image;

    /**
    * 类型 0.在矫通 1.矫务通 2.其他
    */
    @Schema(description = "类型")
    private Integer deviceType;

    /**
    * 类型 0.分类 1.教育
    */
    @Schema(description = "类型")
    private Integer classifyType;

    /**
    * 排序
    */
    @Schema(description = "排序")
    private Integer classifySort;

    /**
    * 备注
    */
    @Schema(description = "备注")
    private String remarks;

    /**
    * 创建时间
    */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private Date createTime;

    /**
    * 创建人
    */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

}